package com.ttj.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class InitTimeUtil {
	public static String getStartDaytime(Calendar startTime){
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		startTime.set(Calendar.HOUR, 0);  
		startTime.set(Calendar.MINUTE, 0);  
		startTime.set(Calendar.SECOND, 0);  
		startTime.set(Calendar.MILLISECOND, 0); 
		return sdf.format(startTime.getTime());
	}
}
